

import 'package:flutter/material.dart';
import 'package:three/comphonents/my.dart';
import 'package:three/pages/detail_page.dart';
import 'package:three/pages/home_page.dart';

void main() {
  runApp( MaterialApp(
    //路由启动页
    initialRoute: '/',
    //路由表
    routes: {
      '/':(context)=>const HomePage(),
      '/detail':(context)=>const DetailPage(),
    },
  ));
} 